const http = require('http');

const options = {
    port: 3333,
    hostname: 'localhost',
    path: '/demo',
    method: 'POST',
    headers: {
        "Content-Type":'text/html'
    }
}

const req = http.request(options,(res)=>{
    console.log(`statusCode: ${res.statusCode}`);
    res.on('data', d => {
      process.stdout.write(d);
    });
})

req.end()